﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCS.Business.Model
{
   public class SITAMessage
    {
       
	/// <summary>
	/// SourceMessage 构造函数
	/// </summary>
	public SITAMessage()
	{}

	
	/// <summary>
	/// SourceMessage OR映射构造函数
	/// </summary>
    public SITAMessage(System.Data.IDataReader dr)
	{
		this.SourceID = Convert.ToInt32(dr["SourceID"]);
		this.RemoteLocation = Convert.ToString(dr["RemoteLocation"]);
		this.RemoteID = Convert.ToInt32(dr["RemoteID"]);
		this.SendClient = Convert.ToString(dr["SendClient"]);
		this.ReviceClient = Convert.ToString(dr["ReviceClient"]);
		this.MessageType = Convert.ToString(dr["MessageType"]);
		this.SourceContent = Convert.ToString(dr["SourceContent"]);
		this.TeleTime = Convert.ToDateTime(dr["TeleTime"]);
		this.Status = Convert.ToInt32(dr["Status"]);
		this.DownLoadTime = Convert.ToDateTime(dr["DownLoadTime"]);
		this.ParseStartTime = Convert.ToDateTime(dr["ParseStartTime"]);
		this.ParseFinishTime = Convert.ToDateTime(dr["ParseFinishTime"]);
		this.ESBSyncTime = Convert.ToDateTime(dr["ESBSyncTime"]);
        this.ParseErrorLog = Convert.ToString(dr["ParseErrorLog"]);
	}
	
	
	/// <summary>
	/// 自增ID
	/// </summary>
	public int SourceID { get; set; }
	
	/// <summary>
	/// 远程文件所在文件夹
	/// </summary>
	public string RemoteLocation { get; set; }
	
	/// <summary>
	/// 原数据库中的ID
	/// </summary>
	public int RemoteID { get; set; }
	
	/// <summary>
	/// 发报终端
	/// </summary>
	public string SendClient { get; set; }
	
	/// <summary>
	/// 接收终端
	/// </summary>
	public string ReviceClient { get; set; }
	
	/// <summary>
	/// 
	/// </summary>
	public string MessageType { get; set; }
	
	/// <summary>
	/// 原始报文
	/// </summary>
	public string SourceContent { get; set; }
	
	/// <summary>
	/// 发报日期
	/// </summary>
	public DateTime TeleTime { get; set; }
	
	/// <summary>
	/// 
	/// </summary>
	public int Status { get; set; }
	
	/// <summary>
	/// 插入数据时间
	/// </summary>
	public DateTime? DownLoadTime { get; set; }
	
	/// <summary>
	/// 报文开始解析时间
	/// </summary>
	public DateTime? ParseStartTime { get; set; }
	
	/// <summary>
	/// 报文解析结束时间
	/// </summary>
	public DateTime? ParseFinishTime { get; set; }
	
	/// <summary>
	/// 报文同步时间
	/// </summary>
	public DateTime? ESBSyncTime { get; set; }

    /// <summary>
    /// 原始报文
    /// </summary>
    public string ParseErrorLog { get; set; }


    }
}
